package jenum.com;

/**
 * Created by as on 2016/11/17.
 */
public class Book {
    public static final int Business = 0;
    public static final int Literature = 0;
    public static final int Computer = 0;
    public static final int Others = 0;

    public static final String Business1 = "Business1";
    public static final String Literature1 = "Literature1";
    public static final String Computer1 = "Computer1";
    public static final String Others1 = "Others1";
    private int type;
    private String type1;
    public void setType(int type)
    {
        if (type<0 || type>3)
        {
            System.out.println("书的类型不可为：" + type);
        }
        this.type = type;
    }

    public void setType1(String type1)
    {
        this.type1 = type1;
    }

    public int getType()
    {
        return type;
    }

    public String getType1()
    {
        return type1;
    }
}
